import { get, post } from '@/services/request/http'

/*
 * @Author: 谢陈洁
 * @Date: 2025-05-26 10:13:41
 * @LastEditors: 谢陈洁
 * @LastEditTime: 2025-07-11 15:16:46
 * @Description: file content
 */
export const getRoutes = () => {
  return get('/menu/list')
}

export const getAllRoutesAndPermissions = () => {
  return get('/menu/all')
}

export const saveRoute = (data: Record<string, any>): Promise<any> => {
  return post('/menu/save', data)
}

export const deleteRoute = (id: number|string): Promise<any> => {
  return post('/menu/delete', { id })
}
